using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;


namespace BloodBot
{
    /// <summary>
    /// This is a game component that implements IUpdateable.
    /// </summary>
    public class GameStatistics : Microsoft.Xna.Framework.GameComponent
    {
        public int enemysKilled { get; set; }
        public int shotsFired { get; set; }
        public int levelReached { get; set; }
        public TimeSpan timePlayed { get; set; }

        public GameStatistics(Game game)
            : base(game)
        {
            enemysKilled = 0;
            shotsFired = 0;
            timePlayed = TimeSpan.Zero;
            levelReached = 1;
            // TODO: Construct any child components here
        }

        public void UpdateStats(int enemysKilled, int shotsFired, int level, TimeSpan timePlayed)
        {
            this.enemysKilled += enemysKilled;
            this.shotsFired += shotsFired;
            this.levelReached += level;
            this.timePlayed += timePlayed;
        }

        public void Reset(int enemysKilled, int shotsFired, int level, TimeSpan timePlayed)
        {
            this.enemysKilled = enemysKilled;
            this.shotsFired = shotsFired;
            this.levelReached = level;
            this.timePlayed = timePlayed;
        }

    }
}
